/*
 * @Author: your name
 * @Date: 2021-01-07 17:46:31
 * @LastEditTime: 2022-02-01 16:02:56
 * @LastEditors: 晟松
 * @Description: In User Settings Edit
 * @FilePath: \volunteer-vue3-admin\src\store\getters.js
 */
export default {
    opened: (state) => state.app.slider.opened,
    token: (state) => state.app.token || sessionStorage.getItem("token"),
    uname: (state) => state.app.uname,
    menuList: (state) => state.app.menuList,
    permissionList: (state) => state.app.permissionList,
    identity: (state) => {
        return state.app.identity || sessionStorage.getItem("identity");
    },
    user: (state) => {
        return JSON.parse(sessionStorage.getItem("user")) || state.app.user;
    },
    tagViews: (state) => state.app.tagViews,
    schoolAdmin: (state) => state.app.schoolAdmin,
};
